

import request from "@/utils/axios";


enum Api {
  GET_CHAOS_LIST = '/chaos/list',
  GET_CHAOS_STATUS = '/chaos/status',
  CREATE_CHAOS = '/chaos/create',
  STOP_CHAOS = '/chaos/stop',
}

// 当前故障信息
export function getChaosListApi() {
  return request({
    url: Api.GET_CHAOS_LIST,
    method: 'get',
  });
}

// 当前故障信息
export function getChaosStatusApi() {
  return request({
    url: Api.GET_CHAOS_STATUS,
    method: 'get',
  });
}

// 当前故障信息
export function createChaosApi(params: any) {
  return request({
    url: Api.CREATE_CHAOS,
    method: 'post',
    data:params
  });
}
export function stopChaosApi() {
  return request({
    url: Api.STOP_CHAOS,
    method: 'get',
  });
}